package com.andyliu.configer;

import com.andyliu.sys.mapper.SUserMapper;
import com.andyliu.sys.pojo.SUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Configuration
@ComponentScan("com.andyliu")
@RestController
public class RootConfiger {
    @Autowired
    private SUserMapper mapper;
    @RequestMapping("test")
    public List<SUser> test(){
        List<SUser> sUsers = mapper.selectByExample(null);
        return sUsers;
    }

}
